package com.li;

/**
 * @author lirenchun
 */
public class GenericsTest<T> {
    private T t;
    private T v;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public T getV() {
        return v;
    }

    public void setV(T v) {
        this.v = v;
    }

    @Override
    public String toString() {
        return "GenericsTest{" +
                "t=" + t +
                ", v=" + v +
                '}';
    }

    public static void main(String[] args) {
        GenericsTest genericsTest=new GenericsTest();
        genericsTest.setT("sdf");
        genericsTest.setV(123);
        System.out.println(genericsTest);
    }
}
